package routers

import (
	"CMETO/controllers/orderController"
	middleware "CMETO/middlewares"

	"github.com/gin-gonic/gin"
)

func OrderApi(r *gin.RouterGroup) {
	var order orderController.OrderController
	orderRouter := r.Group("/order", middleware.JWTAuthPlus())
	{
		orderRouter.GET("/", order.QueryOrders)
		orderRouter.PUT("/", order.UpdateOrderStatus)
		orderRouter.DELETE("/", order.DeleteOrder)
	}
}
